<template>
  
  <div>
      <h1>岗位管理</h1>
       岗位名称：<input type="text">  &emsp;&emsp; 岗位编码：<input type="text"> &emsp;&emsp;
        <van-button><van-icon name="search" /> 查询 </van-button> &emsp;&emsp;
        <van-button><van-icon name="replay" /> 重置 </van-button>     <br>

        <van-button > + 新增 </van-button> &emsp;
        <van-button><van-icon name="delete-o" /> 删除 </van-button> &emsp;
        <van-button><van-icon name="down" /> 导出 </van-button> &emsp;
        <van-button> <van-icon name="arrow-left" />导入 </van-button> &emsp;
        
         <table border="3" >
            <tr>
              <th> <van-checkbox></van-checkbox> </th>
              <th>序号</th>
              <th>岗位名称</th>
              <th>岗位编码</th>
              <th>岗位排序</th>
              <th>岗位描述</th>
              <th>操作</th>
          </tr>
          <tr v-for="i in datas" :key="i.id" >
              <td><van-checkbox></van-checkbox></td>
              <td>{{i.id}}</td>
              <td>{{i.position}}</td>
              <td>{{i.post_code}}</td>
              <td>{{i.postsorting}}</td>
              <td>{{i.post_descride}}</td>
              <td>
                <!-- <router-link>用户</router-link>
                <router-link>编辑</router-link>
                <router-link>删除</router-link> -->

              </td>
          </tr>
        </table>

  </div>
</template>

<script>
import axios from '../../http/axios'
export default {
    // postment
     data(){
            return{
                datas:[]
            }
    },

    methods:{

        getpostment(){
            axios('postment','get').then(res=>{
                this.datas = res.list
            })
        }
    },
    mounted(){
        this.getpostment()
    }

}
</script>

<style>

</style>